#!/usr/bin/env python
# -*- coding: UTF-8 -*-
'''
@Project : python的学习
@File    : test.py
@IDE     : PyCharm
@Author  : 春风十里
@Date    : 2023/6/27 17:49

'''
f = open("test.txt", 'a+')
f.write("aaa")
f.close()
f = open("test.txt")
print(f.read())
f = open("test.txt", "a+")
f.write("bbb")
f.close()
f = open('test.txt')
print(f.read())
f = open("test.txt", "a+")
f.write("aaa")
f.close()
print(f.closed)
print(f.name)
print(f.mode)
f = open("test.txt",'a+')
f.write("aaabbbccc")
f.close()
f = open("test.txt")
print(f.readlines())
f.close()
